package cn.boat.router.consumer;

import java.util.List;

public class ConsumerMetaData {
    private String consumerId;
    private String consumerGroupName;
    private List<TopicWithPartitionData> topicWithPartitionDataList;

    public ConsumerMetaData() {
        consumerId = "";
        consumerGroupName ="";
        topicWithPartitionDataList =null;
    }

    public ConsumerMetaData(String consumerId, String consumerGroupName, List<TopicWithPartitionData> topicWithPartitionDataList) {
        this.consumerId = consumerId;
        this.consumerGroupName = consumerGroupName;
        this.topicWithPartitionDataList = topicWithPartitionDataList;
    }

    public String getConsumerId() {
        return consumerId;
    }

    public void setConsumerId(String consumerId) {
        this.consumerId = consumerId;
    }

    public String getConsumerGroupName() {
        return consumerGroupName;
    }

    public void setConsumerGroupName(String consumerGroupName) {
        this.consumerGroupName = consumerGroupName;
    }

    public List<TopicWithPartitionData> getTopicWithPartitionDataList() {
        return topicWithPartitionDataList;
    }

    public void setTopicWithPartitionDataList(List<TopicWithPartitionData> topicWithPartitionDataList) {
        this.topicWithPartitionDataList = topicWithPartitionDataList;
    }

    @Override
    public String toString() {
        return "ConsumerMetaData{" +
                "consumerId='" + consumerId + '\'' +
                ", consumerGroupName='" + consumerGroupName + '\'' +
                ", topicWithPartitionDataList=" + topicWithPartitionDataList +
                '}';
    }
}
